physics_particle_get_max_count

Get the maximum number of particles permitted in the physics simulation.

语法:

physics_particle_get_max_count()


返回: Real(实数)


描述

With this function you can find out what the current cap value is on particles permitted in the physics simulation (you can set this value using physics_particle_set_max_count()).


例如:

if physics_particle_count() < physics_particle_get_max_count()
   {
   physics_particle_create(0, x, y, 0, 0, c_white, 1, 1)
   }

The above code will check to see if there are less than the maximum number of permitted particles in the room, and if so create one more.


上一页: Soft Body Particles
下一页: physics_particle_get_radius
© Copyright YoYo Games Ltd. 2018 All Rights Reserved